package com.bwie.controller;

import com.bwie.pojo.TbCar;
import com.bwie.service.TbCarService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/car/car")
public class TbCarController {
    @Autowired
    private TbCarService tbCarService;
    @PostMapping("/selectCar")
    public R selectCar(@RequestBody PageInfoVo pageInfoVo){
        return tbCarService.selectCar(pageInfoVo);
    }
    @PostMapping("/addList")
    public R addList(@RequestBody TbCar tbCar){
        return tbCarService.addList(tbCar);
    }

}
